package com.ruoyi.dynamic.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excel.ColumnType;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.employee.domain.EmployeeUser;
import com.ruoyi.market.domain.ConfigBase;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 动态对象 dynamic
 *
 * @author ruoyi
 */
public class Dynamic extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 动态ID
     */
    @Excel(name = "动态序号", cellType = ColumnType.NUMERIC, prompt = "动态编号")
    private Long dynamicId;

    /** 创建者用户Id */
    private Long userId;

    /** 店铺ID */
    private String shopId;

    /**
     * 审核状态（0正常 1停用）
     */
    @Excel(name = "帐号状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 上架状态（0正常 1停用）
     */
    @Excel(name = "帐号状态", readConverterExp = "0=正常,1=停用")
    private String active;


    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /**
     * 排序
     */
    @Excel(name = "排序", cellType = ColumnType.NUMERIC)
    private Long dynamicSort;

    /** 点赞人数 */
    private int numLike;

    /** 查看人数 */
    private int numSee;

    /**
     * 是否置顶 0=是,1=否
     */
    @Excel(name = "是否置顶", cellType = ColumnType.NUMERIC)
    private int isTop;

    /** 是否收藏（Y-是 N-否） */
    @Excel(name = "是否收藏", readConverterExp = "Y=是,1=停用")
    private String isLike;

    /**
     * 图片地址
     */
    private String dynamicImage;

    /** 动态视频 */
    private String dynamicVideo;

    /**
     * 动态标题
     */
    private String dynamicTitle;

    /**
     * 动态描述
     */
    private String dynamicContent;

    /**
     * 动态标签
     */
    private String dynamicTags;

    /**
     * 应用ID
     */
    private String appId;

    /** 地址 */
    private String address;

    /** 地址编码 */
    private String addressCode;

    private EmployeeUser employeeUser;

    /** 所属店铺信息   */
    private ConfigBase shopInfo;

    public Dynamic() {

    }

    public Dynamic(Long dynamicId) {
        this.dynamicId = dynamicId;
    }

    public Long getDynamicId() {
        return dynamicId;
    }

    public void setDynamicId(Long dynamicId) {
        this.dynamicId = dynamicId;
    }

    public String getShopId(){ return shopId; }

    public void setShopId(String shopId){ this.shopId = shopId; }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getActive() {
        return active;
    }

    public void setActive(String active) {
        this.active = active;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public Long getUserId()
    {
        return userId;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getDynamicSort() {
        return dynamicSort;
    }

    public void setDynamicSort(Long dynamicSort) {
        this.dynamicSort = dynamicSort;
    }

    public int getNumLike() {
        return numLike;
    }

    public void setNumLike(int numLike) {
        this.numLike = numLike;
    }

    public int getNumSee() {
        return numSee;
    }

    public void setNumSee(int numSee) {
        this.numSee = numSee;
    }

    public String getDynamicImage() {
        return dynamicImage;
    }

    public void setDynamicImage(String dynamicImage) {
        this.dynamicImage = dynamicImage;
    }

    public String getDynamicVideo() {
        return dynamicVideo;
    }

    public void setDynamicVideo(String dynamicVideo) {
        this.dynamicVideo = dynamicVideo;
    }

    public String getDynamicTitle() {
        return dynamicTitle;
    }

    public void setDynamicTitle(String dynamicTitle) {
        this.dynamicTitle = dynamicTitle;
    }

    public String getDynamicContent() {
        return dynamicContent;
    }

    public void setDynamicContent(String dynamicContent) {
        this.dynamicContent = dynamicContent;
    }

    public String getDynamicTags() {
        return dynamicTags;
    }

    public void setDynamicTags(String dynamicTags) {
        this.dynamicTags = dynamicTags;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAddressCode() {
        return addressCode;
    }

    public void setAddressCode(String addressCode) {
        this.addressCode = addressCode;
    }

    public int getIsTop() {
        return isTop;
    }

    public void setIsTop(int isTop) {
        this.isTop = isTop;
    }

    public String getIsLike()
    {
        return isLike;
    }

    public void setIsLike(String isLike)
    {
        this.isLike = isLike;
    }

    public EmployeeUser getEmployeeUser() {
        return employeeUser;
    }

    public void setEmployeeUser(EmployeeUser employeeUser) {
        this.employeeUser = employeeUser;
    }

    public ConfigBase getShopInfo()
    {
        return shopInfo;
    }

    public void setShopInfo(ConfigBase shopInfo)
    {
        this.shopInfo = shopInfo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("dynamicId", getDynamicId())
                .append("shopId", getShopId())
                .append("dynamicSort", getDynamicSort())
                .append("dynamicTitle", getDynamicTitle())
                .append("dynamicContent", getDynamicContent())
                .append("dynamicTags", getDynamicTags())
                .append("dynamicVideo", getDynamicVideo())
                .append("address", getAddress())
                .append("addressCode", getAddressCode())
                .append("appId", getAppId())
                .append("userId", getUserId())
                .append("isTop", getIsTop())
                .append("isLike", getIsLike())
                .append("delFlag", getDelFlag())
                .append("numSee", getNumSee())
                .append("numLike", getNumLike())
                .append("status", getStatus())
                .append("active", getActive())
                .append("shopInfo", getShopInfo())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("employeeUser", getEmployeeUser())
                .toString();
    }
}
